home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / FlyThrough 1.1.2 / src / Source / QD3D General Tools / CCameraMaker.h < prev    next >
Encoding:
Text File  |  1995-11-26  |  926 b   |  34 lines  |  [TEXT/CWIE]

  1. //
  2. //    CCameraMaker.h
  3. //
  4. //    class CCameraMaker
  5. //    A class that constructs a QuickDraw 3D View Angle Aspect camera.
  6. //
  7. //    It's designed to make it easy to change the camera placement
  8. //    before you call Get() (or Make()) the first time.
  9. //
  10. //    by James Jennings
  11. //    November 26, 1995
  12. //
  13.  
  14. #pragma once
  15.  
  16. #include "CObjectMaker.h"
  17.  
  18. class CCameraMaker : public CObjectMaker<TQ3CameraObject> {
  19. public:
  20.     CCameraMaker(const SDimension16 &frameSize);
  21.     virtual void    Make();
  22.     
  23.     // accessors
  24.     virtual void    SetLocation(TQ3Point3D &from);
  25.     virtual void    SetLocation(float x, float y, float z);
  26.     virtual void    SetPointOfInterest(TQ3Point3D &to);
  27.     virtual void    SetPointOfInterest(float x, float y, float z);
  28.     virtual void    SetUpVector(TQ3Vector3D &up, Boolean orthogonalize = true);
  29.     virtual void    SetUpVector(float x, float y, float z, Boolean orthogonalize = true);
  30.     virtual void    Orthogonalize();
  31. protected:
  32.     TQ3ViewAngleAspectCameraData    mData;
  33. };
  34.